#pragma once
#include "include/wrapper/cef_message_router.h"
#include "include/cef_browser.h"

class DialogHandler : public CefRunFileDialogCallback
{
public:
	DialogHandler(std::string& msgName, CefRefPtr<CefFrame> frame) :msgName(msgName), frame(frame) {}
	void OnFileDialogDismissed(
		const std::vector<CefString>& file_paths) override;
	DialogHandler(const DialogHandler&) = delete;
	DialogHandler operator=(const DialogHandler&) = delete;

private:
	std::string msgName;
	CefRefPtr<CefFrame> frame;
	IMPLEMENT_REFCOUNTING(DialogHandler);
};

